/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.impuser.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.impuser.model.HtComUserModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_impUserHtComUserDao")
public class HtComUserDao extends DaoBase<HtComUserModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
		public java.lang.Integer addHtComUser(HtComUserModel htComUserModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtComUser", htComUserModel);
		return key;
	}
	
	public void chgHtComUser(HtComUserModel htComUserModel) {
		this.updateObject("chgHtComUser", htComUserModel);
	}
	
	public void delHtComUser(HtComUserModel htComUserModel) {
		this.updateObject("delHtComUser", htComUserModel);
	}

	public List<HtComUserModel> getHtComUsers(HtComUserModel htComUserModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtComUsers", htComUserModel, pageInfo);
	}
	
	public void delHtComUsers(List<java.lang.Integer> ids){
		this.deleteObject("delHtComUsers", ids);
	}
	
	public int getHtComUsersCount(HtComUserModel htComUserModel) {
		return (Integer) this.getObjectByObject("getHtComUsersCount", htComUserModel);
	}
}
